package vashion.azeroth.core.personal.dao;

import java.util.ArrayList;

import vashion.azeroth.core.dao.BaseDao;
import vashion.azeroth.core.dao.DaoRepository;
import vashion.azeroth.core.personal.pojo.PersonalAddress;

@DaoRepository
public interface PersonalAddressDao extends BaseDao<PersonalAddress> {

	int getMyAddrCount(long memberId);
	
	int checkMyAreaCode(PersonalAddress newAddress);

	ArrayList<PersonalAddress> getAddrList(PersonalAddress address);

	int removeAddrByAddressId(PersonalAddress newAddress);

	int getAddrById(PersonalAddress address);

	PersonalAddress getMyDefAddr(long memberId);

	long getMyDefAddrId(Long memberId);

	PersonalAddress queryDefaultAddress(PersonalAddress address);
	
}
